package com.acane.instagram.service;

import com.acane.instagram.pojo.Post;
import com.acane.instagram.pojo.Result;
import com.acane.instagram.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PostService extends IService<Post> {
    List<Post> getRecommendPostList(String userId);

    List<Post> getPostListById(String userId);

    boolean addPost(Post post);

    User getUserByPostId(String postId);

    Post getPostById(String postId);

    int likePost(String postId);

    int unlikePost(String postId);

    List<Post> getRecommendVideoList(String userId);

    int addCommentCount(String postId);

    List<Post> searchPost(String keyword);

    List<Post> getPostList();

    List<Post> getPostListByPage(int pageNum, int pageSize);

    List<Post> searchPosts(String userName, String nickName, String content,
                        //   int status,
                           String startTime, String endTime, int page, int size);

    Result passAction(String postId);

    Result failAction(String postId, String reason);
}
